﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020007F3 RID: 2035
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetRogueInfoScRsp : IMessage<GetRogueInfoScRsp>, IMessage, IEquatable<GetRogueInfoScRsp>, IDeepCloneable<GetRogueInfoScRsp>, IBufferMessage
	{
		// Token: 0x170019D9 RID: 6617
		// (get) Token: 0x06005B42 RID: 23362 RVA: 0x000F4E75 File Offset: 0x000F3075
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetRogueInfoScRsp> Parser
		{
			get
			{
				return GetRogueInfoScRsp._parser;
			}
		}

		// Token: 0x170019DA RID: 6618
		// (get) Token: 0x06005B43 RID: 23363 RVA: 0x000F4E7C File Offset: 0x000F307C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetRogueInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170019DB RID: 6619
		// (get) Token: 0x06005B44 RID: 23364 RVA: 0x000F4E8E File Offset: 0x000F308E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetRogueInfoScRsp.Descriptor;
			}
		}

		// Token: 0x06005B45 RID: 23365 RVA: 0x000F4E95 File Offset: 0x000F3095
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRogueInfoScRsp()
		{
		}

		// Token: 0x06005B46 RID: 23366 RVA: 0x000F4EA0 File Offset: 0x000F30A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRogueInfoScRsp(GetRogueInfoScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.rogueGameInfo_ = ((other.rogueGameInfo_ != null) ? other.rogueGameInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005B47 RID: 23367 RVA: 0x000F4EEC File Offset: 0x000F30EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRogueInfoScRsp Clone()
		{
			return new GetRogueInfoScRsp(this);
		}

		// Token: 0x170019DC RID: 6620
		// (get) Token: 0x06005B48 RID: 23368 RVA: 0x000F4EF4 File Offset: 0x000F30F4
		// (set) Token: 0x06005B49 RID: 23369 RVA: 0x000F4EFC File Offset: 0x000F30FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170019DD RID: 6621
		// (get) Token: 0x06005B4A RID: 23370 RVA: 0x000F4F05 File Offset: 0x000F3105
		// (set) Token: 0x06005B4B RID: 23371 RVA: 0x000F4F0D File Offset: 0x000F310D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueInfo RogueGameInfo
		{
			get
			{
				return this.rogueGameInfo_;
			}
			set
			{
				this.rogueGameInfo_ = value;
			}
		}

		// Token: 0x06005B4C RID: 23372 RVA: 0x000F4F16 File Offset: 0x000F3116
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetRogueInfoScRsp);
		}

		// Token: 0x06005B4D RID: 23373 RVA: 0x000F4F24 File Offset: 0x000F3124
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetRogueInfoScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.RogueGameInfo, other.RogueGameInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005B4E RID: 23374 RVA: 0x000F4F74 File Offset: 0x000F3174
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.rogueGameInfo_ != null)
			{
				num ^= this.RogueGameInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005B4F RID: 23375 RVA: 0x000F4FC9 File Offset: 0x000F31C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005B50 RID: 23376 RVA: 0x000F4FD1 File Offset: 0x000F31D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005B51 RID: 23377 RVA: 0x000F4FDC File Offset: 0x000F31DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Retcode);
			}
			if (this.rogueGameInfo_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.RogueGameInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005B52 RID: 23378 RVA: 0x000F5034 File Offset: 0x000F3234
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.rogueGameInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueGameInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005B53 RID: 23379 RVA: 0x000F508C File Offset: 0x000F328C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetRogueInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.rogueGameInfo_ != null)
			{
				if (this.rogueGameInfo_ == null)
				{
					this.RogueGameInfo = new RogueInfo();
				}
				this.RogueGameInfo.MergeFrom(other.RogueGameInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005B54 RID: 23380 RVA: 0x000F50F4 File Offset: 0x000F32F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005B55 RID: 23381 RVA: 0x000F5100 File Offset: 0x000F3300
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 34U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.rogueGameInfo_ == null)
						{
							this.RogueGameInfo = new RogueInfo();
						}
						input.ReadMessage(this.RogueGameInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002360 RID: 9056
		private static readonly MessageParser<GetRogueInfoScRsp> _parser = new MessageParser<GetRogueInfoScRsp>(() => new GetRogueInfoScRsp());

		// Token: 0x04002361 RID: 9057
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002362 RID: 9058
		public const int RetcodeFieldNumber = 1;

		// Token: 0x04002363 RID: 9059
		private uint retcode_;

		// Token: 0x04002364 RID: 9060
		public const int RogueGameInfoFieldNumber = 4;

		// Token: 0x04002365 RID: 9061
		private RogueInfo rogueGameInfo_;
	}
}
